﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace BackupContracts.Sql
{
    public class SqlDatabase : ModelBase
    {
        private SqlServer _Server;
        [XmlIgnore]
        public SqlServer Server
        {
            get { return _Server; }
            set { SetField(ref _Server, value, () => Server); }
        }

        private string _Name;
        public string Name
        {
            get { return _Name; }
            set { SetField(ref _Name, value, () => Name); }
        }

        private string _ServerId;
        public string ServerId
        {
            get { return _ServerId; }
            set { SetField(ref _ServerId, value, () => ServerId); }
        }

        private string _Status;
        [XmlIgnore]
        public string Status
        {
            get { return _Status; }
            set { SetField(ref _Status, value, () => Status); }
        }

        private DateTimeOffset? _LastBackup;
        [XmlIgnore]
        public DateTimeOffset? LastBackup
        {
            get { return _LastBackup; }
            set { SetField(ref _LastBackup, value, () => LastBackup); }
        }

    }
}
